import request from '@/utils/request'

// 查询发收信息列表
export function listSendrece(query) {
  return request({
    url: '/system/sendrece/list',
    method: 'get',
    params: query
  })
}

// 查询发收信息详细
export function getSendrece(sendReceiveId) {
  return request({
    url: '/system/sendrece/' + sendReceiveId,
    method: 'get'
  })
}

// 新增发收信息
export function addSendrece(data) {
  return request({
    url: '/system/sendrece',
    method: 'post',
    data: data
  })
}

// 修改发收信息
export function updateSendrece(data) {
  return request({
    url: '/system/sendrece',
    method: 'put',
    data: data
  })
}

// 删除发收信息
export function delSendrece(sendReceiveId) {
  return request({
    url: '/system/sendrece/' + sendReceiveId,
    method: 'delete'
  })
}

// 查询发收信息详细
export function getPersonAddress(mobile) {
  return request({
    url: '/system/sendrece/ext/' + mobile,
    method: 'get'
  })
}
